# 确保脚本抛出遇到的错误
set -e

# 生成静态文件
yarn build

# 进入生成的文件夹
cd .vuepress/dist

git init
git add -A
git commit -m 'update'


# 如果发布到 https://<USERNAME>.github.io/<REPO>

git remote add origin https://gitee.com/mkcat/notes.git
git pull origin master --allow-unrelated-histories
git fetch origin master 
git push -u origin master
cd -